* Figure 5
use "./data/academics.dta", clear
createvarsacad
* Restrict to tenure track professors
keep if tenure
contract year
label var year "Year"
rename _freq ndout
label var ndout "Tenure-track professors in economics"
tsset year
tsline ndout, ///
ytitle("Number of tenure-track professors in economics") graphregion(fcolor(white)) ///
legend(region(color(white))) scheme(sj)
graph export ./figures/fig5.pdf, replace
